We are going to create an automatic night light which can be set to activate when the light level falls below a particular threshold. To do this we are going to use the on board light dependent resistor (LDR) to measure the light level and control when the PIC processor switches on the lights.